﻿<!--addnew/edit form-->
<form name="formEditor">

<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>
<!-- 页面内容标签：如“新增记录”、“修改记录” -->
<tr>
<td>
<div id=tabs>
    <ul>
        <li onclick="changeLiStyle(this);" id="tabsl">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:return false;'>
                <span id="formTitleEditor">修改信息</span>
            </a>
        </li>
    </ul>
    <div id='hline'></div>
</div>
</tr>
</td>
</table>

<FIELDSET><LEGEND>抓阄人员信息</LEGEND>
<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>
			<input name="zhuajiu_tuid" type="hidden" value="${fld:id}" preserve="true">
	<tr>
		<td class="th20 required">所在街道</td>
		<td class="td20left">
				<!--picklist-->
				<input id="location_id" name="location_id" type="hidden" value="">
				<input type="text" id="location_name" name="location_name" size="30" readonly value="">
				<img src="${def:context}/images/search.gif" class="tool"
					onclick="pickOpen('location_name','location_id','${def:context}${def:actionroot}/pick/location/form?display=display:none','300','250','formEditor')"
					title="查询街道">
				<img src="${def:context}/images/clear.gif"
					onclick="pickClear('formEditor','location_name','location_id');" class="tool2"
					title="清除选择的内容" >					

		</td>
	</tr>
	<tr>
		<td class="th20 required">户型</td>
		<td class="td20left">
				<!--picklist-->
				<input id="room_type_id" name="room_type_id" type="hidden" value="">
				<input type="text" id="room_type" name="room_type" size="30" readonly value="">
				<img src="${def:context}/images/search.gif" class="tool"
					onclick="pickOpen('room_type','room_type_id','${def:context}${def:actionroot}/pick/roomtype?display=display:none&location_id='+document.formEditor.location_id.value,'200','150','formEditor')"
					title="查询户型">
				<img src="${def:context}/images/clear.gif"
					onclick="pickClear('formEditor','room_type','room_type_id');" class="tool2"
					title="清除选择的内容" >					
		</td>
	</tr>
	<tr>
		<td>
	  	<input type="button" class="cmd" value="人员列表" onclick="getMaster(document.formEditor.location_id.value,document.formEditor.room_type_id.value,document.formEditor.zhuajiu_tuid.value)" id="getmaster">
  			<br>
  			<span ><a href="#"  onclick="selectAll('master_tuid','formEditor');">全选</a>-<a href="#" onclick="unselectAll('master_tuid','formEditor');">反选</a></span>
		<td>
	</tr>
	<tr>
		<td class="th20 required">人员</td>
		<td class="td20left">
				<!--picklist-->
				<div id="form_master_list" style="display:;width:100%">
			    <!--这里将填充人员列表-->            	
        <div>
		</td>
	</tr>

	<tr>
		<td class="th20">备注</td>
		<td class="td20left">
            <input name="remark" type="text" size="20" maxlength="128" value="">
		</td>
	</tr>
</TABLE>
</FIELDSET>


<FIELDSET><LEGEND>操作信息</LEGEND>
<TABLE class=table_comm cellSpacing=0 cellPadding=0 width="100%" border=0>
        <col width="80%">
        <col width="20%">
        <!--buttons-->
        <tr>
            <td align="center" colspan=1>
                <input type="button" class="cmd" value="保存" onclick="return save()" id="submitBtn">
                <input type="button" class="cmd" value="返回" onclick="javascript:document.getElementById('divEditor').style.display = 'none';document.getElementById('divFilter').style.display = '';document.getElementById('response').style.display = '';" >
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="deleteCommand" type="button" class="cmd" style="display:none" value="删除"  onclick="deleteRecord(tuid.value)">
            </td>
            <td class="th20 required" colspan=3>
                特别标注为必填信息.
            </td>
        </tr>
    
</table>
</FIELDSET>

    <!--tuid是否为空,决定了form的保存方法为编辑保存,还是新增保存-->
    <input type="hidden" id="tuid" name="tuid" default="0" value="">

</form>
